﻿using System.Web;

namespace NMA.Web.Areas.Admin.Models
{
    using NMA.Web.Core.Helper;

    public class ViewModelBase
    {
        public ViewModelBase()
        {
            SiteHeaderText = "News Management System";
            UserName = HttpContext.Current.User.Identity.Name;
            CurrentTab = NavigationTab.Category;
        }

        protected ViewModelBase(NavigationTab activeTab)
            : this()
        {
            CurrentTab = activeTab;
        }

        public string SiteHeaderText { get; set; }        
        public NavigationTab CurrentTab { get; protected set; }
        public string UserName { get; set; }
    }
}